﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administracion/AdminAcademia.master"
    AutoEventWireup="true" CodeFile="ConsultaCursos.aspx.cs" Inherits="Administracion_ConsultaCursos" %>

<%@ OutputCache Location="None" NoStore="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 225px;
        }
        .style5
        {
            width: 78px;
        }
        .style6
        {
            width: 147px;
        }
        .style7
        {
            width: 161px;
        }
        .style8
        {
            width: 119px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div id="sesionInfo" runat="server" visible="true">
        <h2>
            Sesión</h2>
        <table>
            <tr>
                <td>
                    <asp:Label ID="lblUsuarioSesion" runat="server" Text="Usuario:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblUsuarioLogueado" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblRolSesion" runat="server" Text="Rol:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblRolLogueado" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnCerrarSesion" runat="server" CssClass="btn" Text="Cerrar Sesión"
                        Width="127px" OnClick="btnCerrarSesion_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h2>
        Consulta de Cursos de la Academia</h2>
    <asp:Panel ID="panelCurso" runat="server" Width="547px">
        <br />
        <table>
            <tr>
                <td class="cabecera" colspan="3" align="center">
                    Búsqueda de Cursos
                </td>
            </tr>
            <tr>
                <td align="right" class="style7">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td class="style8">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <asp:Label ID="lblCurso" runat="server" Text="Curso:"></asp:Label>
                </td>
                <td class="style5">
                    <asp:DropDownList ID="ddlCurso" runat="server" Width="143px" CssClass="txt">
                    </asp:DropDownList>
                </td>
                <td class="style8">
                    <asp:Label ID="lblMenCurso" runat="server" ForeColor="Red" Font-Size="Smaller"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <asp:Label ID="lblNombreProfesor" runat="server" Text="Nombre de profesor:"></asp:Label>
                </td>
                <td class="style5">
                    <asp:TextBox ID="txtNombreProfesor" runat="server" Width="131px" CssClass="txt"></asp:TextBox>
                </td>
                <td class="style8">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <asp:Label ID="lblApellidoProfesor" runat="server" Text="Apellido de profesor:"></asp:Label>
                </td>
                <td class="style5">
                    <asp:TextBox ID="txtApellidoProfesor" runat="server" Width="131px" CssClass="txt"></asp:TextBox>
                </td>
                <td class="style8">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style7">
                    &nbsp;</td>
                <td class="style5">
                    <asp:Label ID="lblMenResultado" runat="server"></asp:Label>
                </td>
                <td class="style8">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style7">
                    &nbsp;</td>
                <td class="style5">
                    &nbsp;</td>
                <td class="style8">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="cabecera" align="center" colspan="3">
                    &nbsp;Datos de Cursos &nbsp; &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style7">
                    &nbsp;
                </td>
                <td class="style5">
                    &nbsp;</td>
                <td class="style8">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3">
                    <asp:GridView ID="grillaCursos" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" Font-Size="Smaller" PageSize="5" Width="518px" 
                        CellPadding="4" ForeColor="#333333" 
                        GridLines="None" onpageindexchanging="grillaCursos_PageIndexChanging" 
                        onselectedindexchanged="grillaCursos_SelectedIndexChanged" 
                        onsorting="grillaCursos_Sorting">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:CommandField SelectImageUrl="~/images/slecc.png" SelectText="Ver Horario" 
                                ShowSelectButton="True" />
                            <asp:BoundField DataField="Nombre" HeaderText="Nombre Curso" 
                                SortExpression="NombreCurso" />
                            <asp:BoundField DataField="Precio" HeaderText="Precio" />
                            <asp:BoundField DataField="Nivel" HeaderText="Nivel Curso" />
                            <asp:BoundField DataField="NombreProfesor" HeaderText="Nombre Profesor" />
                            <asp:BoundField DataField="ApellidoProfesor" HeaderText="Apellido Profesor" />
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    &nbsp;
                </td>
                <td class="style5">
                    &nbsp;
                </td>
                <td class="style8">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="center" class="style22" colspan="3">
                    <asp:GridView ID="grillaHorario" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" Font-Size="Smaller" ForeColor="#333333" GridLines="None" 
                        Visible="False">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="Nombre" HeaderText="Curso" />
                            <asp:BoundField DataField="HoraInicio" HeaderText="Hora Inicio" />
                            <asp:BoundField DataField="HoraFin" HeaderText="Hora Fin" />
                            <asp:BoundField DataField="Dia" HeaderText="Dia" />
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    &nbsp;</td>
                <td class="style5">
                    <asp:Label ID="lblResOperacion" runat="server"></asp:Label>
                </td>
                <td class="style8">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" class="style7">
                    <asp:Button ID="btnVolver" runat="server" OnClick="btnVolver_Click" Text="Volver"
                        CssClass="btn" />
                </td>
                <td align="left" class="style21" colspan="2">
                    <asp:Button ID="btnBuscar" runat="server" OnClick="btnBuscar_Click" Text="Buscar"
                        ValidationGroup="validar" CssClass="btn" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnLimpiar" runat="server" OnClick="btnLimpiar_Click" Text="Limpiar"
                        CssClass="btn" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
